<!-- 综合得分 -->
<template>
  <div class="composite">
    <p class="composite_title"> 综合得分</p>
    <div class="composite_main">
      <ul class="">
        <li>学习能力{{ ScoreAll.studyTotal }}%</li>
        <li>分析能力{{ ScoreAll.analysisTotal }}%</li>
        <li>实践能力{{ ScoreAll.practiceTotal }}%</li>
      </ul>
      <ul>
        <li>{{ ScoreAll.total }}分</li>
      </ul>
      <ul>
        <li>应用能力{{ ScoreAll.applicateTotal }}%</li>
        <li>风控能力{{ ScoreAll.managementTotal }}%</li>
        <li>探索能力{{ ScoreAll.exploreTotal }}%</li>
      </ul>
    </div>
    <div class="composite_footer">
      <p>综合得分<span>{{ ScoreAll.total }}</span>分（已超过全班<span>{{ ScoreAll.totalRanking }}%</span>的同学）</p>
    </div>

  </div>
</template>
<script setup lang="ts">
defineProps({
  ScoreAll: {
    type: Object,
    default: () => {
      return {
        studyTotal: 0,
        analysisTotal: 0,
        practiceTotal: 0,
        total: 0,
        applicateTotal: 0,
        managementTotal: 0,
        exploreTotal: 0,
        totalRanking: 0
      }
    }
  }
})
</script>

<style lang="scss" scoped>
.composite {
  width: 100%;
  height: 100%;
  padding: 5px;

  .composite_title {
    background: url(@/assets/studen/images/zh_cen_title.png) no-repeat;
    background-size: 100% 100%;
    background-position: center;
    text-align: center;
    font-size: 20px;
    line-height: 38px;
    font-weight: bold;
    color: #335FA6;
  }

  .composite_main {
    width: 100%;
    height: calc(100% - 80px);
    // margin: 5px 0;
    display: flex;

    ul {

      height: 100%;
      // margin-top: 5%;
      color: #5C86FF;

      &:nth-child(1) {
        color: #333;
        flex: 1;

        li {
          height: 30%;
          display: flex;
          align-items: flex-end;
          justify-content: center;
          font-size: 16px;
          width: 150px;
          margin: 15px auto;

          &:nth-child(1) {
            background: url(@/assets/studen/images/zh_fkbag.png) no-repeat;
            background-size: 60% 80%;
            background-position: center;
            margin-right: -10px;
          }

          &:nth-child(2) {
            background: url(@/assets/studen/images/zh_fxbag.png) no-repeat;
            background-size: 60% 80%;
            background-position: center;
          }

          &:nth-child(3) {
            background: url(@/assets/studen/images/zh_sjbag.png) no-repeat;
            background-size: 60% 80%;
            background-position: center;
            margin-right: -10px;
          }


        }
      }

      &:nth-child(2) {
        flex: 1.5;
        text-align: center;
        display: flex;
        // align-items: center;
        padding-top: 30px;
        justify-content: center;
        font-size: 28px;
        font-weight: bold;
        background: url(@/assets/studen/images/zh_center_bag.png) no-repeat;
        background-size: 100% 100%;
        background-position: center;
      }

      &:nth-child(3) {
        color: #333;
        flex: 1;

        li {
          height: 30%;
          display: flex;
          align-items: flex-end;
          // justify-content: flex-end;
          justify-content: center;
          width: 150px;
          margin: 15px auto;
          text-align: center;

          &:nth-child(1) {
            background: url(@/assets/studen/images/zh_tsbag.png) no-repeat;
            background-size: 60% 80%;
            background-position: center;
            margin-left: -10px;
          }

          &:nth-child(2) {
            background: url(@/assets/studen/images/zh_xxbag.png) no-repeat;
            background-size: 60% 80%;
            background-position: center;
          }

          &:nth-child(3) {
            background: url(@/assets/studen/images/zh_yybag.png) no-repeat;
            background-size: 60% 80%;
            background-position: center;
            margin-left: -10px;
          }
        }
      }
    }
  }

  .composite_footer {
    width: 50%;
    line-height: 46px;
    height: 38px;
    text-align: center;
    color: #bff2ff;
    font-size: 14px;
    margin: 0 auto;
    margin-top: 10px;

    p {
      height: 100%;
      background: url(@/assets/studen/images/zh_btm_title.png) no-repeat;
      background-size: 100% 80%;
      background-position: center;
      background-position-y: 130%;
    }

    span {
      color: greenyellow;
    }
  }
}

@media screen and (max-width:1600px) {
  .composite .composite_main ul:nth-child(2) {
    padding-top: 0;
  }
}
</style>
